package com.utra.hellshan.upload.OtherTools;


import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;

import java.util.ArrayList;
import java.util.List;


public class PermissionTool {



    public static boolean hasPermission(Context mContexts, String permission) {

        PackageManager pm = mContexts.getPackageManager();
        return (PackageManager.PERMISSION_GRANTED ==
                pm.checkPermission(permission, mContexts.getPackageName()));
    }





}
